package com.sansan.qiangji.service.impl.base;

import com.sansan.qiangji.entity.base.Device;
import com.sansan.qiangji.entity.base.example.DeviceExample;
import com.sansan.qiangji.mapper.base.DeviceMapper;
import com.sansan.qiangji.service.inter.base.DeviceService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class DeviceServiceImpl implements DeviceService {

    @Autowired
    private DeviceMapper deviceMapper;
    @Override
    public long countByExample(DeviceExample example) {
        return deviceMapper.countByExample(example);
    }

    @Override
    public int deleteByExample(DeviceExample example) {
        return deviceMapper.deleteByExample(example);
    }

    @Override
    public int deleteByPrimaryKey(Integer id) {
        return deviceMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(Device record) {
        return deviceMapper.insert(record);
    }

    @Override
    public int insertSelective(Device record) {
        return deviceMapper.insertSelective(record);
    }

    @Override
    public List<Device> selectByExample(DeviceExample example) {
        return deviceMapper.selectByExample(example);
    }

    @Override
    public Device selectByPrimaryKey(Integer id) {
        return deviceMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByExampleSelective(Device record, DeviceExample example) {
        return deviceMapper.updateByExampleSelective(record,example);
    }

    @Override
    public int updateByExample(Device record, DeviceExample example) {
        return deviceMapper.updateByExample(record,example);
    }

    @Override
    public int updateByPrimaryKeySelective(Device record) {
        return deviceMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(Device record) {
        return deviceMapper.updateByPrimaryKey(record);
    }
}
